﻿@using ChampionsLeagueBets.Domain
@model UnitOfAccount

@{
	ViewBag.Title = "Lista jednostek rozliczeniowych";
	ViewBag.Image = "~/Content/images/unitofaccount-64.png";
}

@using (Html.BeginForm())
{
	@Html.AntiForgeryToken()

	<div id="content">
		<fieldset class="form-data">
			<legend>Dane podstawowe</legend>
			<table>
				<tr>
					<th>
						@Html.LabelFor(t => t.Name):
					</th>
					<td>@Html.EditorFor(t => t.Name) @Html.ValidationMessageFor(t => t.Name)
					</td>
				</tr>
				<tr>
					<th>
						@Html.LabelFor(t => t.ShortName):
					</th>
					<td>@Html.EditorFor(t => t.ShortName) @Html.ValidationMessageFor(t => t.ShortName)
					</td>
				</tr>
			</table>
		</fieldset>
	</div>

	<div class="ui-actions">
		@Html.SubmitButton("btnSubmit", "Zapisz")
		@(Html.ActionLink<UnitOfAccountsController>(c => c.Index(), "Anuluj", new { @class = "link-button" }))
	</div>
}